import 'package:flutter/material.dart';

class MyDialog extends Dialog {
  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      title: Text("title"),
      content: Text("content"),
      actions: <Widget>[
        TextButton(
          onPressed: () {
            Navigator.pop(context);
          },
          child: Text("取消"),
        ),
        TextButton(
          onPressed: () {
            Navigator.pop(context);
          },
          child: Text("确定"),
        )
      ],
    );
  }
}
